package com.suning.sawp.dto.bi;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 〈一句话功能简述〉单品销售详情<br>
 * 〈功能详细描述〉
 *
 * @author 17033093
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class CmmdtySaleDetailDto implements Serializable {

    private static final long serialVersionUID = 482766057798092305L;

    /**
     * 商品编码
     */
    private String cmmdtyCode = "";

    /**
     * 商品名称
     */
    private String cmmdtyName = "";

    /**
     * 平均单价
     */
    private BiSaleAmountDto avgPrice = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 逆向销售金额
     */
    private BiSaleAmountDto refundAmt = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 正向销售金额
     */
    private BiSaleAmountDto saleAmt = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 逆向销售数量
     */
    private String refundNum = "0";

    /**
     * 正向销售数量
     */
    private String saleNum = "0";

    /**
     * 总销售金额
     */
    private BiSaleAmountDto salePayTotal = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 总销售数量
     */
    private String saleNumTotal = "0";

    /**
     * 销售占比
     */
    private String salesPersent = "0.0";

    /**
     * 折扣券明细列表
     */
    private List<CouponDto> discountList = new ArrayList<CouponDto>();

    /**
     * 折扣券总金额
     */
    private BiSaleAmountDto discountTotal = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 优惠单明细列表
     */
    private List<CouponDto> preperentialList = new ArrayList<CouponDto>();

    /**
     * 优惠单总金额
     */
    private BiSaleAmountDto preperentialTotal = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 其他优惠总金额
     */
    private BiSaleAmountDto otherTotal = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    /**
     * 总折扣金额
     */
    private BiSaleAmountDto totalDiscountAmt = BiSaleAmountDto.valueOf(BigDecimal.ZERO);

    public String getCmmdtyCode() {
        return cmmdtyCode;
    }

    public void setCmmdtyCode(String cmmdtyCode) {
        this.cmmdtyCode = cmmdtyCode;
    }

    public String getCmmdtyName() {
        return cmmdtyName;
    }

    public void setCmmdtyName(String cmmdtyName) {
        this.cmmdtyName = cmmdtyName;
    }

    public BiSaleAmountDto getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(BiSaleAmountDto avgPrice) {
        this.avgPrice = avgPrice;
    }

    public BiSaleAmountDto getRefundAmt() {
        return refundAmt;
    }

    public void setRefundAmt(BiSaleAmountDto refundAmt) {
        this.refundAmt = refundAmt;
    }

    public BiSaleAmountDto getSaleAmt() {
        return saleAmt;
    }

    public void setSaleAmt(BiSaleAmountDto saleAmt) {
        this.saleAmt = saleAmt;
    }

    public String getRefundNum() {
        return refundNum;
    }

    public void setRefundNum(String refundNum) {
        this.refundNum = refundNum;
    }

    public String getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(String saleNum) {
        this.saleNum = saleNum;
    }

    public BiSaleAmountDto getSalePayTotal() {
        return salePayTotal;
    }

    public void setSalePayTotal(BiSaleAmountDto salePayTotal) {
        this.salePayTotal = salePayTotal;
    }

    public String getSaleNumTotal() {
        return saleNumTotal;
    }

    public void setSaleNumTotal(String saleNumTotal) {
        this.saleNumTotal = saleNumTotal;
    }

    public String getSalesPersent() {
        return salesPersent;
    }

    public void setSalesPersent(String salesPersent) {
        this.salesPersent = salesPersent;
    }

    public List<CouponDto> getDiscountList() {
        return discountList;
    }

    public void setDiscountList(List<CouponDto> discountList) {
        this.discountList = discountList;
    }

    public BiSaleAmountDto getDiscountTotal() {
        return discountTotal;
    }

    public void setDiscountTotal(BiSaleAmountDto discountTotal) {
        this.discountTotal = discountTotal;
    }

    public List<CouponDto> getPreperentialList() {
        return preperentialList;
    }

    public void setPreperentialList(List<CouponDto> preperentialList) {
        this.preperentialList = preperentialList;
    }

    public BiSaleAmountDto getPreperentialTotal() {
        return preperentialTotal;
    }

    public void setPreperentialTotal(BiSaleAmountDto preperentialTotal) {
        this.preperentialTotal = preperentialTotal;
    }

    public BiSaleAmountDto getTotalDiscountAmt() {
        return totalDiscountAmt;
    }

    public void setTotalDiscountAmt(BiSaleAmountDto totalDiscountAmt) {
        this.totalDiscountAmt = totalDiscountAmt;
    }

    public BiSaleAmountDto getOtherTotal() {
        return otherTotal;
    }

    public void setOtherTotal(BiSaleAmountDto otherTotal) {
        this.otherTotal = otherTotal;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("CmmdtySaleDetailDto [cmmdtyCode=");
        builder.append(cmmdtyCode);
        builder.append(", cmmdtyName=");
        builder.append(cmmdtyName);
        builder.append(", avgPrice=");
        builder.append(avgPrice);
        builder.append(", refundAmt=");
        builder.append(refundAmt);
        builder.append(", saleAmt=");
        builder.append(saleAmt);
        builder.append(", refundNum=");
        builder.append(refundNum);
        builder.append(", saleNum=");
        builder.append(saleNum);
        builder.append(", salePayTotal=");
        builder.append(salePayTotal);
        builder.append(", saleNumTotal=");
        builder.append(saleNumTotal);
        builder.append(", salesPersent=");
        builder.append(salesPersent);
        builder.append(", discountList=");
        builder.append(discountList);
        builder.append(", discountTotal=");
        builder.append(discountTotal);
        builder.append(", preperentialList=");
        builder.append(preperentialList);
        builder.append(", preperentialTotal=");
        builder.append(preperentialTotal);
        builder.append(", otherTotal=");
        builder.append(otherTotal);
        builder.append(", totalDiscountAmt=");
        builder.append(totalDiscountAmt);
        builder.append("]");
        return builder.toString();
    }

}
